From 2bdeb12ffb918055730296f47f2704621b42884b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 12 Jul 2010 18:33:30 +0100 Subject: [PATCH] sysctl: Make meaning of max_cpu_index field clearer. Signed-off-by: Keir Fraser --- xen/include/public/sysctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/include/public/sysctl.h b/xen/include/public/sysctl.h index 56506e56a4..71edbf5340 100644 --- a/xen/include/public/sysctl.h +++ b/xen/include/public/sysctl.h @@ -476,8 +476,8 @@ struct xen_sysctl_topologyinfo { * each cpu. * If a cpu has no core/socket/node information (e.g., cpu not present) * then the sentinel value ~0u is written. - * The size of this array is specified by the caller in @max_cpu_index. - * If the actual @max_cpu_index is smaller than the array then the trailing + * The size of this array is specified by the caller (@max_cpu_index+1). + * If the array has more than @max_cpu_index+1 elements then the trailing * elements of the array will not be written by the sysctl. */ XEN_GUEST_HANDLE_64(uint32) cpu_to_core; -- 2.30.2